//
//  OfflineFileCellModel.m
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/12/28.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#import "OfflineFileCellModel.h"

#import "OfflineFileDBData.h"

@interface OfflineFileCellModel ()

@property (nonatomic, readwrite, copy) NSString* name;
@property (nonatomic, readwrite, copy) NSString* date;

@end

@implementation OfflineFileCellModel

- (instancetype)initWithData:(id)data cellHeight:(CGFloat)cellHeight
{
    self = [super init];
    if (self)
    {
        _data = data;
        
        /// cellHeight+2（2容错）
        _cellHeight = MHUIScaleValue(cellHeight)+2;
        
        OfflineFileDBData* dbData = data;
        
        self.name = dbData.name;
        self.date = dbData.date;
    }
    
    return self;
}

@end
